#include "header.h"

typedef struct object_section{
	unsigned char  Name[8];
	unsigned int   VirtualSize;
	unsigned int   VirtualAddress;
    unsigned int   SizeOfRawData;
	unsigned int   PointerToRawData;
	unsigned int   PointerToRelocations;
	unsigned int   PointerToLinenumbers;
	unsigned short NumberOfRelocations;
	unsigned short NumberOfLinenumbers;
	unsigned int   Characteristics;
	//object_relations_t *Relocations;
}object_section_t;

void object_section_free( object_section_t **s, object_header_t *oh);
object_section_t ** object_section_load( FILE *fp, object_header_t *oh );

unsigned int object_section_relation_table_position(object_section_t *s);

char * object_section_to_string( object_section_t *s );
char * object_section_to_xml_string( object_section_t *s );
void object_section_to_string_free( char * c );
